package com.lhd.ivos.user.mapper;

/**
 * @author lhd
 * date 2024/5/21
 * @apiNote
 */


import com.lhd.ivos.user.pojo.dto.UserQuery;
import com.lhd.ivos.user.pojo.entity.User;
import com.lhd.ivos.user.pojo.vo.UserVO;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserMapper {
    UserVO selectByUsername(String username);

    int insert(User user);

    int update(User user);

    List<UserVO> selectUsers(UserQuery userQuery);

    void deleteUser(Long userId);

    UserVO selectAuditByParentId(Long id);

    UserVO selectById(Long userId);
}
